<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                template="logisticsTemplate.xhtml">

    <ui:define name="contentLogistics">
        <br/>
        <br/>
        <br/>
        <p:tabView>
            <p:tab title="Add Devices To Storage">
        <h1>Add Devices To Storage</h1>
        <h:messages showDetail="true"/>
        <h:form>
            <table>
            <tr>
                <td><h:outputLabel for="quantity" value="Quantity: " /></td>
                <td><h:inputText id="quantity" value="#{addDevices.quantity}">
                    </h:inputText>
                    <p:slider minValue="0" maxValue="200" for="quantity"/>
                    </td>
            </tr>
            <tr>
                <td><h:outputLabel for="model" value="Model: "/></td>
                <td>
                    <h:selectOneMenu id="model" value="#{addDevices.modelSelected}">
                        <f:selectItems value="#{addDevices.availableModels}" />
                    </h:selectOneMenu>
                </td>
            </tr>
            </table>
            <p:growl id="message" showDetail="true"/>
            <p:commandButton value="Add Devices" actionListener="#{addDevices.addDevices}" update="message"/>
        </h:form>
            </p:tab>
        </p:tabView>
    </ui:define>

</ui:composition>